package com.yangzb.java.sample.activiti;

import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpUtil;

import java.util.concurrent.TimeUnit;

public class Test {
    public static void main(String[] args) throws InterruptedException {
        for (int i = 20000; i < 30000; i++) {
            HttpRequest request = HttpUtil.createGet(StrUtil.format("http://localhost:8080/processInstance/startProcess?processDefinitionKey=Process_1&instanceName={}&instanceVariable={}", i, i));
            request.header("Cookie","JSESSIONID=BDB2917A53CE38B7EA29B61C0C00EC3C");
            request.execute();
            TimeUnit.MILLISECONDS.sleep(50);
            System.out.println(i);
        }
    }
}
